package com.think.teaching.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;

import java.io.Serializable;

/**
 * <p>
 * 文章课程章节
 * </p>
 *
 * @author think
 * @since 2020-08-12
 */
public class ArticleLesson extends BaseModel<ArticleLesson> {

    private static final long serialVersionUID=1L;

    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    private long id;

    /**
     * 课时名称
     */
    private String lessonName;

    /**
     * 章节id
     */
    private Integer chapterId;

    /**
     * 文章id
     */
    private Integer articleId;


    public ArticleLesson(long id, String name, Integer chapterId,Integer articleId) {
		this.id = id;
		this.lessonName = name;
		this.chapterId = chapterId;
		this.articleId = articleId;
	}

	public long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getLessonName() {
        return lessonName;
    }

    public void setLessonName(String lessonName) {
        this.lessonName = lessonName;
    }

    public Integer getChapterId() {
        return chapterId;
    }

    public void setChapterId(Integer chapterId) {
        this.chapterId = chapterId;
    }

    public Integer getArticleId() {
        return articleId;
    }

    public void setArticleId(Integer articleId) {
        this.articleId = articleId;
    }


    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "ArticleLesson{" +
        "id=" + id +
        ", lessonName=" + lessonName +
        ", chapterId=" + chapterId +
        ", articleId=" + articleId +
        ", createdBy=" + createdBy +
        ", createdTime=" + createdTime +
        ", updatedBy=" + updatedBy +
        ", updatedTime=" + updatedTime +
        ", delflag=" + delflag +
        ", state=" + state +
        "}";
    }
}
